<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="js/jquery-3.2.1.js"></script>
</head>
<body>
        你输入的用户名是：<p id="userName"></p>
        你输入的密码是：<p id="PWD"></p>
        你输入的电子邮箱是：<p id="Dh"></p>
        你输入的电话号码是：<p id="qQh"></p>
</body>
<form action="register.html">
    <input type="submit" value="返回从新注册">
</form>
<script>
    function UrlSearch(){
        var name,value;
        var str=location.href;
        var num=str.indexOf("?")
        str=str.substr(num+1);

        var arr=str.split("&");
        for(var i=0;i < arr.length;i++){
            num=arr[i].indexOf("=");
            if(num>0){
                name=arr[i].substring(0,num);
                value=arr[i].substr(num+1);
                this[name]=value;
            }
        }
    }
    var Request=new UrlSearch();
        document.getElementById("userName").innerHTML=Request.userName;
        document.getElementById("PWD").innerHTML=Request.PWD;
        document.getElementById("Dh").innerHTML=Request.Dh;
        document.getElementById("qQh").innerHTML=Request.qQh
</script>
</html>